package com.songshuai.webapi.permission.dao;

import com.songshuai.webapi.permission.model.YxRoleNavigationFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface YxRoleNavigationFunctionMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(YxRoleNavigationFunction record);

    int insertSelective(YxRoleNavigationFunction record);

    YxRoleNavigationFunction selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(YxRoleNavigationFunction record);

    int updateByPrimaryKey(YxRoleNavigationFunction record);

    int deleteByRoleId(Integer roleId);

    //删除用户菜单功能关联
    int deleteRoleNavFuncRelation(YxRoleNavigationFunction entity);

    int addRoleNavFuncRelation(Map<String,Object> params);

    List<Integer> getFuncIdByRoleAndNav(@Param("roleId")Integer roleId,@Param("navigationId")Integer navigationId);

}